#include <iostream>
#include <string>
#include "../CallBacker/HashCallBacker.h"
using namespace std;
int main()
{
	string str;
	while(getline(cin,str)){
		SHA1HashCallBacker sc;
		MD5HashCallBacker mc;
		cout<<"MD5:"<<mc.hash(str)<<endl;
		cout<<"SHA1:"<<sc.hash(str)<<endl;
	}
	return 0;
}